package cn.ren.cloud.feign;

import cn.ren.cloud.domain.Login;
import cn.ren.cloud.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 23508
 */
@FeignClient(value = "service-uaa", fallbackFactory = LoginFeinClientFallbackFactory.class)
public interface LoginFeinClient {

    /**
     * 添加login
     *
     * @param login
     * @return
     */
    @RequestMapping(value = "/login/save", method = RequestMethod.POST)
    JsonResult saveOrUpdate(@RequestBody Login login);
}
